<?php
/**
 * Created by PhpStorm.
 * User: wangzhe
 * Time: 2019-05-06 14:38
 */

namespace App\Http\Validate;

use Illuminate\Support\Facades\Validator;

/**
 * Class BaseValidate
 * @package App\Http\Validate
 */
class BaseValidate
{
    protected static $params;
    protected static $rules;
    protected static $message;

    public static function check($params)
    {
        $res = Validator::make($params, self::$rules['rule'], self::$rules['custom_message'] ?? []);
        return $res;
    }
}
